<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Manager extends Model
{
    //
    protected $table="dg_manager";

    protected $hidden = ['password'];
    protected $fillable=['name','password','role_id'];

    public function role()
    {
        return $this->belongsTo('App\Models\Role','role_id','id');
    }
}
